package cn.usian.jyzx.user.service.impl;

import cn.usian.jyzx.model.entity.user.UserAddress;
import cn.usian.jyzx.user.mapper.UserAddressMapper;
import cn.usian.jyzx.user.service.UserAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @TODO:
 * @Author:baimu
 * @Date:2024 11 07 14 03
 **/

@Service
public class UserAddressServiceImpl implements UserAddressService {

@Autowired
    public UserAddressMapper userAddressMapper;
    @Override
    public List<UserAddress> findByUserId(Long userId) {
        return userAddressMapper.findByUserId(userId);
    }

    @Override
    public UserAddress findById(Long id) {
        return userAddressMapper.findById(id);
    }
}
